<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Copyright Microsoft Corporation. All Rights Reserved, 2002 -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>11_2_6-BF-02</title>
</head>
<body>
<div class="TestPurpose">Verify the functionality of the colspan attribute for TD and TH</div>
<div class="AssertionsTested">Test for assertion 11.2.6-7</div>
<div class='FilesTested'>File: 11_2_6-BF-02.html</div>
<pre style='border: 1px solid black; padding: 5px'>
<strong>Source</strong>
&lt;p&gt;In the following table, TD is used to specify table cells.&lt;/p&gt;
&lt;div&gt;The cell labeled &amp;quot;default&amp;quot; must span one column because no value is specified for the colspan attribute, but 1 is the default value.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;zero&amp;quot; must span THREE COLUMNS because the colspan attribute is set to 0. The 0 value means that the cell spans all columns from the current column to the last column of the column group in which the cell is defined.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;one&amp;quot; must span one column because the colspan attribute is set to 1.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;two&amp;quot; must span two columns because the colspan attribute is set to 2.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;three&amp;quot; must span three columns because the colspan attribute is set to 3.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;table summary='summary' border=&quot;1&quot;&gt;
&lt;tr&gt;&lt;td&gt;column 1&lt;/td&gt;&lt;td&gt;column 2&lt;/td&gt;&lt;td&gt;column 3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;default&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;0&quot;&gt;zero&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;1&quot;&gt;one&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;two&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;3&quot;&gt;three&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;In the following table, TH is used to specify table cells.&lt;/p&gt;
&lt;div&gt;The cell labeled &amp;quot;default&amp;quot; must span one column because no value is specified for the colspan attribute, but 1 is the default value.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;zero&amp;quot; must span THREE COLUMNS because the colspan attribute is set to 0. The 0 value means that the cell spans all columns from the current column to the last column of the column group in which the cell is defined.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;one&amp;quot; must span one column because the colspan attribute is set to 1.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;two&amp;quot; must span two columns because the colspan attribute is set to 2.&lt;/div&gt;
&lt;div&gt;The cell labeled &amp;quot;three&amp;quot; must span three columns because the colspan attribute is set to 3.&lt;/div&gt;

&lt;table summary='summary' border=&quot;1&quot;&gt;
&lt;tr&gt;&lt;th&gt;column 1&lt;/th&gt;&lt;th&gt;column 2&lt;/th&gt;&lt;th&gt;column 3&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th&gt;default&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th colspan=&quot;0&quot;&gt;zero&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th colspan=&quot;1&quot;&gt;one&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th colspan=&quot;2&quot;&gt;two&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th colspan=&quot;3&quot;&gt;three&lt;/th&gt;&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p>In the following table, TD is used to specify table cells.</p>
<div>The cell labeled &quot;default&quot; must span one column because no value is specified for the colspan attribute, but 1 is the default value.</div>
<div>The cell labeled &quot;zero&quot; must span THREE COLUMNS because the colspan attribute is set to 0. The 0 value means that the cell spans all columns from the current column to the last column of the column group in which the cell is defined.</div>
<div>The cell labeled &quot;one&quot; must span one column because the colspan attribute is set to 1.</div>
<div>The cell labeled &quot;two&quot; must span two columns because the colspan attribute is set to 2.</div>
<div>The cell labeled &quot;three&quot; must span three columns because the colspan attribute is set to 3.</div>
<div><br /></div>
<div><br /></div>

<table summary='summary' border="1">
<tr><td>column 1</td><td>column 2</td><td>column 3</td></tr>
<tr><td>default</td></tr>
<tr><td colspan="0">zero</td></tr>
<tr><td colspan="1">one</td></tr>
<tr><td colspan="2">two</td></tr>
<tr><td colspan="3">three</td></tr>
</table>

<p>In the following table, TH is used to specify table cells.</p>
<div>The cell labeled &quot;default&quot; must span one column because no value is specified for the colspan attribute, but 1 is the default value.</div>
<div>The cell labeled &quot;zero&quot; must span THREE COLUMNS because the colspan attribute is set to 0. The 0 value means that the cell spans all columns from the current column to the last column of the column group in which the cell is defined.</div>
<div>The cell labeled &quot;one&quot; must span one column because the colspan attribute is set to 1.</div>
<div>The cell labeled &quot;two&quot; must span two columns because the colspan attribute is set to 2.</div>
<div>The cell labeled &quot;three&quot; must span three columns because the colspan attribute is set to 3.</div>

<table summary='summary' border="1">
<tr><th>column 1</th><th>column 2</th><th>column 3</th></tr>
<tr><th>default</th></tr>
<tr><th colspan="0">zero</th></tr>
<tr><th colspan="1">one</th></tr>
<tr><th colspan="2">two</th></tr>
<tr><th colspan="3">three</th></tr>
</table>
</body>
</html>
